package com.letoken.platform.pub.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 分页和排序对象
 *
 */
@Data
@ApiModel(value = "分页和排序对象", description = "分页和排序对象")
public class PageReq {

    @ApiModelProperty(name = "page", value = "页数，页数从1开始", example = "1")
    private int page = 1;
    @ApiModelProperty(name = "size", value = "每页条数，默认每页10条", example = "10")
    private int size = 10;

    @ApiModelProperty(name = "sorts", value = "排序集合", example = "")
    private List<SortReq> sorts;

}
